import Vue        from 'vue'
import Router     from 'vue-router';
Vue.use(Router)

//购买下单首页
const Index                 = () =>         import('../pages/index/index.vue');
//历史订单列表
const OrderList             = () =>         import('../pages/orderList/orderList.vue');
//历史订单详情
const OrderDetail           = () =>         import('../pages/orderDetail/orderDetail.vue');
//国内实名认证
const GoRealName            = () =>         import('../pages/goRealName/goRealName.vue');
//国外实名认证
const GoRealName2           = () =>         import('../pages/goRealName2/goRealName2.vue');
//实名认证状态
const RealNameStatus        = () =>         import('../pages/realNameStatus/realNameStatus.vue');
//选择付款页面
const BuyType               = () =>         import('../pages/buyType/buyType.vue');
//选择收款页面
const SellType              = () =>         import('../pages/sellType/sellType.vue');
//mykey中出售页面
const MykeySell             = () =>         import('../pages/mykeySell/mykeySell.vue');
//出售页面
const Sell                  = () =>         import('../pages/sell/sell.vue');
//设置收款方式
const SetUserDropInfo       = () =>         import('../pages/setUserDropInfo/setUserDropInfo.vue');
//下单后倒计时
const MakeOrder             = () =>         import('../pages/makeOrder/makeOrder.vue');
//404页
const None                  = () =>         import('../pages/404/404.vue');

export default new Router({
    // mode:'history',
    routes: [
        { path: '/',                  name: 'index',            component: Index,               meta:{keepAlive:false} }, 
        { path: '/orderList',         name: 'orderList',        component: OrderList,           meta:{keepAlive:false} }, 
        { path: '/orderDetail',       name: 'orderDetail',      component: OrderDetail,         meta:{keepAlive:false} }, 
        { path: '/goRealName',        name: 'goRealName',       component: GoRealName,          meta:{keepAlive:false} }, 
        { path: '/goRealName2',       name: 'goRealName2',      component: GoRealName2,         meta:{keepAlive:false} }, 
        { path: '/realNameStatus',    name: 'realNameStatus',   component: RealNameStatus,      meta:{keepAlive:false} }, 
        { path: '/setUserDropInfo',   name: 'setUserDropInfo',  component: SetUserDropInfo,     meta:{keepAlive:false} },
        { path: '/buyType',           name: 'buyType',          component: BuyType,             meta:{keepAlive:false} }, 
        { path: '/sellType',          name: 'sellType',         component: SellType,            meta:{keepAlive:false} }, 
        { path: '/mykeySell',         name: 'mykeySell',        component: MykeySell,           meta:{keepAlive:false} }, 
        { path: '/sell',              name: 'sell',             component: Sell,                meta:{keepAlive:false} }, 
        { path: '/makeOrder',         name: 'makeOrder',        component: MakeOrder,           meta:{keepAlive:false} }, 
        { path: '/404',               name: 'none',             component: None,                meta:{keepAlive:false} }, 
        { path: '*',                  redirect: '/404' }, 
    ]
})
